﻿@model GameSchool.Models.Choice

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Svarmöguleikar</legend>

        <div class="editor-label">
           <h2>Svarmöguleiki:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            <h2>Rétt svar?</h2>
        </div>
        <div class="editor-field"><!-- ER EKKI AÐ SKILA SÉR Í CHOICES TÖFLUNA? ÞETTA ER IDENTICAL OG ER Í CREATEQUESTION-->
            @Html.DropDownList("CorrectAnswer")
            @Html.ValidationMessageFor(model => model.Correct)
        </div>

        
        <section class="one-half">
                <input type="submit" value="Annar svarmöguleiki" class="sendbutton" name="sendbutton" /> 

                <a href="@Url.Action("CreateQuestion", "Quiz")"><button class="quizbuttons" >Ný spurning</button></a>
                
             </section>  
             
        <section class="one-half last">   
            <section class="one-half">   
                  <a href="@Url.Action("Index", "Home")"><button class="quizbuttons" id="saveTest">Vista próf</button></a>
                 </section> 
                 <section class="one-half last">
                  
                  </section>
             </section>
        
    </fieldset>
}

